/**
 * 自定义 网络错误对象
 */
function RequestError(message, errors) {
    this.name = message;
    this.errors = errors;
    this.message = message;
}
RequestError.prototype = Object.create(Error.prototype); // 原型继承，复制方法
RequestError.prototype.constructor = RequestError;

export default RequestError;